package com.softeem.service;

import com.softeem.entity.Course;
import com.softeem.entity.Student;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface StudentService {
    Integer login(String username, String password) throws SQLException;

    List<Student> findAll() throws SQLException;

    Integer total(Student student) throws SQLException;

    List<Student> findPages(String pagNo) throws SQLException;

    int addStu(Student stu) throws SQLException;

    Integer updateStu(Student stu) throws SQLException;

    Student findOne(String stuid) throws SQLException;

    Integer delete(String stuid) throws SQLException;

    List<Student> findByCase(Student stu) throws SQLException;

    List<Course> findCourse() throws SQLException;

    int addCourse(Course cou) throws SQLException;

    int addEle(List<Course> list1, String fileName) throws SQLException;

    void save(List list) throws SQLException;

    Course findCouByCno(String cno) throws SQLException;

    Integer updateCou(Course cou) throws SQLException;

    void addFile(String[] split) throws SQLException;

//    Map findByCase(Student student, String pageNo) throws SQLException;
}
